ÄúµÄλÖãºÑ°ÃÎÍøÊ×Ò³£¾±à³ÌÀÖÔ°£¾VBScript£¾VBScript


objects constants operators statements functions properties methods





FUNCTION:  LTrim( )

LTrim(String)

The LTrim function removes extra blank spaces only on the left side of a string.

Note that HTML automatically removes extra blank spaces in this view.

Code:
<% =LTrim("   A sentence with extra spaces on both sides.    ") %>

Output:
A sentence with extra spaces on both sides.